package club.vann.mock.biyi.acceptor.strategy;

import club.vann.mock.biyi.acceptor.AcceptorService;
import club.vann.mock.factory.AcceptorServiceFactory;
import club.vann.mock.model.enums.StrategyAction;

/**
 * Acceptor挡板服务，收到init请求，初始化数据，并按照配置决定挡板消息的正常或异常。
 *
 * <p>业务处理逻辑：
 *
 * <ol>
 *   <li>接受并解析Kafka数据
 *   <li>查询挡板配置
 *   <li>根据挡板配置响应消息
 * </ol>
 */
public class AcceptorInitService extends AcceptorService {
  public AcceptorInitService(AcceptorServiceFactory acceptorServiceFactory) {
    super(acceptorServiceFactory);
  }

  @Override
  public StrategyAction action() {
    return StrategyAction.INIT;
  }
}
